import request from './index'

export function getAiContent(data = {}) {
  return request.post('/ai/aiSessionContent/send', data)
}

export function getAiList(data = {}) {
  return request.get('/ai/ai/list', data)
}

export function getAiHistoryContent(data) {
  return request.get('/ai/aiSessionContent', { params: data })
}

export function getAiModel() {
  return request.get('/ai/ai/aiModelList')
}

export function setContent(data) {
  return request.post('/ai/ai', data)
}

export function updateContent(data) {
  return request.put('/ai/ai/updateSessionTitle', data)
}

export function removeContent(data) {
  return request.delete('/ai/ai', {
    data
  })
}

export function removeContentAll(data) {
  return request.delete('/ai/ai/batch', {
    data
  })
}

export function sendFile(data) {
  return request.post('/ai/aiSessionContent/sendFile', data)
}